body { 
    margin: 0; 
    padding: 0; 
    background: #f5f6fa; 
    display: flex; 
    min-height: 100vh; 
    font-family: Arial, sans-serif; 
}

.main-wrapper { 
    display: flex; 
    width: 100%; 
}

.sidebar {
    width: 240px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar h3 {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 32px 0 16px 0;
    letter-spacing: 2px;
    font-size: 1.3rem;
    margin-bottom: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0 0 32px 0;
    margin: 0;
    flex: 1;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 32px;
    color: #e3e6f0;
    text-decoration: none;
    font-size: 1.08rem;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 0 24px 24px 0;
    margin-bottom: 2px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 4px solid #f6c23e;
    font-weight: bold;
}

.main-content { 
    flex-grow: 1; 
    padding: 20px; 
    background-color: #f5f6fa; 
}

.info-card { 
    background-color: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* 搜索框样式 */
.search-input-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* 表格样式 */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-table th,
.user-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.user-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.user-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* 用户头像样式 */
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    margin-right: 8px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 消息样式 */
.loading-message,
.error-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.loading-message {
    background-color: #e9ecef;
    color: #495057;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.close:hover {
    opacity: 0.75;
}

/* 表单样式 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
    margin-bottom: 1rem;
}

.form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* 头像上传区域样式 */
.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-area {
    width: 80px;
    height: 80px;
    border: 2px dashed #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.avatar-upload-area:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #e9ecef;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* 调整特定表单组的布局 */
#editUserModalForm .form-row > .form-group {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

/* 单独调整头像所在的 form-group，让头像和标签在同一行 */
#editUserModalForm .form-row:first-child {
    align-items: center;
}

#editUserModalForm .form-row:first-child .form-group:first-child {
    flex: 0 0 auto;
    max-width: none;
    padding-right: 15px;
    display: flex;
    align-items: center;
}

#editUserModalForm .form-row:first-child .form-group:first-child label {
    margin-bottom: 0;
    margin-right: 15px;
}

#editUserModalForm .form-row:first-child .form-group:last-child {
    flex-grow: 1;
}

.button-container {
    margin: 16px 0 16px 0;
    display: flex;
    justify-content: flex-end;
}

.button-container .btn {
    min-width: 100px;
    height: 36px;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
    border: none;
}

.btn-success:hover, .btn-success:focus {
    background-color: #218838;
    color: #fff;
} 